package com.gidgabs.modules.api.service.impl;

import com.gidgabs.modules.api.service.TbUserJournalLikeService;
import com.gidgabs.modules.dao.TbUserJournalLikeDao;
import com.gidgabs.modules.entity.TbUserJournalLikeEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class UserJournalLikeServiceImpl implements TbUserJournalLikeService {
	@Autowired
	private TbUserJournalLikeDao userJournalLikeDao;
	
	@Override
	public TbUserJournalLikeEntity queryObject(Integer id){
		return userJournalLikeDao.queryObject(id);
	}
	
	@Override
	public List<TbUserJournalLikeEntity> queryList(Map<String, Object> map){
		return userJournalLikeDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return userJournalLikeDao.queryTotal(map);
	}
	
	@Override
	public void save(TbUserJournalLikeEntity userJournalLike){
		userJournalLikeDao.save(userJournalLike);
	}
	
	@Override
	public void update(TbUserJournalLikeEntity userJournalLike){
		userJournalLikeDao.update(userJournalLike);
	}
	
	@Override
	public void delete(Integer id){
		userJournalLikeDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		userJournalLikeDao.deleteBatch(ids);
	}
	
}
